<?php use_stylesheets_for_form($form) ?>
<?php use_javascripts_for_form($form) ?>

<form action="<?php echo url_for('actividades/'.($form->getObject()->isNew() ? 'create' : 'update').(!$form->getObject()->isNew() ? '?id_ac='.$form->getObject()->getIdAc() : '')) ?>" method="post" <?php $form->isMultipart() and print 'enctype="multipart/form-data" ' ?>>
<?php if (!$form->getObject()->isNew()): ?>
<input type="hidden" name="sf_method" value="put" />
<?php endif; ?><br>
<div id="formularioproyectos" align="center"><br>
  <table>
    <tfoot>
      <tr>
        <td><br>
           <div align="center"><button class="buttonmedium button-green"><span><div id="imagenes" valign="middle"><div class="spritesguardar" id="guardar_jpg" align="center"></div></div><div id="textobutton2">Guardar Actividad</div></span></button></div>
       </td>
        <td><br>  
        &nbsp;<a href="<?php echo url_for('actividades/index?id_ob='.$this->user = sfContext::getInstance()->getUser()->getAttribute('id_ob')) ?>"><button class="buttonmedium button-green"><div id="imagenes" valign="middle"><div class="spritesatrasmall" id="atrasmall_jpg" align="center"></div></div><div id="textobutton2">Menu Principal</div></button></a>
        </td>
      </tr>
    </tfoot>
    <tbody>
      <?php echo $form ?>
    </tbody>
  </table><br>
</div>  
</form>
